#!/bin/sh

# 加载海思ko
cd /usr/lib/modules/load3516cv610
./load3516cv610_20s_debug -i -sensor0 sc4336p

# 初始化硬件IO等
cd /usr/etc/
./init.sh

# 红外切换
./ircut.sh off

# 运行主程序
if [ ! -f /mnt/log/debug.sh ]; then
    /usr/bin/endless < /dev/null &
else
    # 启动成功后设置boot_successful为1
    fw_setenv boot_successful 1
    chmod +x /mnt/log/debug.sh
    /mnt/log/debug.sh &
fi

